  <?php include _include(APP_PATH.'view/htm/header.inc.htm');?>

  <!--{hook index_start.htm}-->
  <div class="container jumbo position-relative px-0" style="border-radius:8px;box-shadow: 0 0px 10px #616161;">
  	<img src="" class="w-100" alt="">
  </div>
  <div class="container py-4">
  	<div class="card">
  		<div class="card-header">
  			CTF 比赛情报
  			<div class="found"><a href="<?php echo url('ctf-team_join');?>"><span>加入团队</span></a><a href="<?php echo url('ctf-team_found');?>"><span>创建团队</span></a></div>
  		</div>
  		<div class="card-block">
  			<div class="row" id="cate_parent">
  				<div class="col-md-6 cate" style="margin: 0.5rem 0rem;">
  					<dl class="row">
  						<dt style="width: 48px" class="vtop">
  							<img src="<?php echo $plugin_img;?>/1.png" class="forum_icon">
  						</dt>
  						<dd class="vtop">
  							<div>
  								<a style="font-size: 14px;" class="text-bold" href="game-team_list-7.htm">兰州交通大学博文学院 “科技杯” 团队赛</a>
  							</div>
  							<div class="text-small text-muted m-y-xs" style="line-height: 1.5;">
  							发布时间：2018-11-15 18:00:00</div>
  						</dd>
  					</dl>
  				</div>
  				<div class="col-md-6 cate" style="margin: 0.5rem 0rem;">
  					<dl class="row">
  						<dt style="width: 48px" class="vtop">
  							<img src="<?php echo $plugin_img;?>/2.png" class="forum_icon">
  						</dt>
  						<dd class="vtop">
  							<div>
  								<a style="font-size: 14px;" class="text-bold" href="#">
  								兰州交通大学博文学院 “科技杯”个人赛</a>
  							</div>
  							<div class="text-small text-muted m-y-xs" style="line-height: 1.5;">
  							发布时间：暂未开启</div>
  						</dd>
  					</dl>
  				</div>
  			</div>
  		</div>
  	</div>
  	<div class="card my-card">
  		<div class="card-header">ctf 团队排名<a href="<?php echo url('ctf-team_score');?>" style="float:right;font-size:12px;color:#454d55;margin-top:3px">查看全部排名</a></div>
  		<div class="card-block">
  			<div class="row">
  				<table class="table">
  					<thead>
  						<tr>
  							<td width="80" style="text-align:center;">排行</td>
  							<td style="white-space:nowrap">团队名</td>

  							<td>总分</td>
  						</tr>
  					</thead>
  					<tbody>
  						<?php
  						$array = db_find('ctf','',['points'=>-1],1,10,'',['name','points']);
  						foreach($array as $key=>$value[]){
  						$name = $value[$key]['name'];
  						$points = $value[$key]['points'];
  						$pm = "";
  						switch($key){
  						case 0:
  						$pm = '<img src="/plugin/mu_ctf/view/img/rank1.png" style="max-height:25px;">';
  						break;
  						case 1:
  						$pm = '<img src="/plugin/mu_ctf/view/img/rank2.png" style="max-height:25px;">';
  						break;
  						case 2:
  						$pm = '<img src="/plugin/mu_ctf/view/img/rank3.png" style="max-height:25px;">';
  						break;
  						default:
  						$pm = $key + 1;
  						break;
  					}
  					echo '<tr><td style="text-align:center;">'.$pm.'</td><td style="white-space:nowrap"><a href="team-myctf-100143.htm">'.$name.'</a></td><td>'.$points.'</td></tr>';
  				}
  				?>
  			</tbody>
  		</table>
  	</div>
  </div>
</div>
</div>
<!--{hook index_end.htm}-->

<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>